package dao;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Test entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "test", catalog = "assistedlearning")
public class Test implements java.io.Serializable {

    // Fields

    private Integer testid;
    private String userid;
    private String courseid;
    private Date time;
    private Integer score;
    private String unableknowledges;

    // Constructors

    /** default constructor */
    public Test() {
    }

    /** minimal constructor */
    public Test(String userid, String courseid, Date time, Integer score) {
	this.userid = userid;
	this.courseid = courseid;
	this.time = time;
	this.score = score;
    }

    /** full constructor */
    public Test(String userid, String courseid, Date time, Integer score,
	    String unableknowledges) {
	this.userid = userid;
	this.courseid = courseid;
	this.time = time;
	this.score = score;
	this.unableknowledges = unableknowledges;
    }

    // Property accessors
    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "testid", unique = true, nullable = false)
    public Integer getTestid() {
	return this.testid;
    }

    public void setTestid(Integer testid) {
	this.testid = testid;
    }

    @Column(name = "userid", nullable = false, length = 10)
    public String getUserid() {
	return this.userid;
    }

    public void setUserid(String userid) {
	this.userid = userid;
    }

    @Column(name = "courseid", nullable = false, length = 4)
    public String getCourseid() {
	return this.courseid;
    }

    public void setCourseid(String courseid) {
	this.courseid = courseid;
    }

    @Column(name = "time", nullable = false, length = 19)
    public Date getTime() {
	return this.time;
    }

    public void setTime(Date time) {
	this.time = time;
    }

    @Column(name = "score", nullable = false)
    public Integer getScore() {
	return this.score;
    }

    public void setScore(Integer score) {
	this.score = score;
    }

    @Column(name = "unableknowledges", length = 200)
    public String getUnableknowledges() {
	return this.unableknowledges;
    }

    public void setUnableknowledges(String unableknowledges) {
	this.unableknowledges = unableknowledges;
    }

}